<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ page import="java.sql.*"%>
<%@ page import="com.tenton.*"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<html>
<head>
	<title>图书管理</title>
	<style>
		.border_distance{
			border:2px solid #CD8090;
		}
		.border_distance tr td{
			border:1px solid #CD6889;
		}
	</style>
</head>
<body  bgcolor="pink">
	<hr>
	<table class="border_distance" width="800" align="center"  bgcolor="white">
		<thead>
		<tr>
			<form action="/selectBookByIdServlet" method="post">
				<td>
					<input type="text" name="id" placeholder="输入图书id进行查询" />
				</td>
				<td align="center" colspan="9">
					<input type="submit" value="查&nbsp;询"/></td>
			</form>
		</tr>
		<tr bgcolor="#DB7093">
			<td align="center" width="30">图书Id</td>
			<td align="center" width="60">图书名称</td>
			<td align="center" width="80">图书信息</td>
			<td align="center" width="80">作者</td>
			<td align="center" width="80">出版社</td>
			<td align="center" width="100">图书单价</td>
			<td align="center" width="100">图书数量</td>
			<td align="center" width="80">操作</td>
		</tr>
		</thead>
		<tbody>
		<tr>
			<td style="width: 30px">${requestScope.book.id}</td>
			<td style="width: 60px">${requestScope.book.bookName}</td>
			<td style="width: 80px">
				<img style="width: 30px;height: 50px" src="/images/${requestScope.book.image}">
			</td>
			<td style="width: 80px">${requestScope.book.author}</td>
			<td style="width: 80px">${requestScope.book.press}</td>
			<td style="width: 80px">${requestScope.book.price}</td>
			<td style="width: 80px">${requestScope.book.num}</td>
		    <td style="width: 80px">
				<a href="/deleteBookServlet?id=${requestScope.book.id}">删除信息</a>
			</td>
		</tr>
		<tr></tr>
		<tr align="center">
		<td colspan="5">
			<a href="addBook.jsp">添加图书信息</a>
		</td>
		<td>
			<a href="/listBookServlet">返回上一页</a>
		</td>
		</tr>
		</tbody>
	</table>
	<br>
</body>
</html>